package com.s07.h01a.model;

public class User extends Object {

	private String name;
	private String surname;
	private Address address;

	public User(String name, String surname) {
		setName(name);
		setSurname(surname);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public void process() {
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	@Override
	public String toString() {
		return "User [name=" + name + ", surname=" + surname + ", address=" + address + "]";
	}

	public String showProducts() {
		return "Products for user " + getName() + " " + getSurname();
	}

}
